package com.jpcc.vw.onlineRadio.fragment;

import android.content.Intent;
import android.view.View;

import com.jpcc.vw.onlineRadio.R;
import com.jpcc.vw.onlineRadio.activity.MemberShipActivity;
import com.jpcc.vw.onlineRadio.activity.PersonalInfoActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class SettingFragment extends com.jpcc.vw.onlineRadio.base.BaseFragment {
    @Override
    public int getLayoutId() {
        return R.layout.fragment_settings;
    }

    @Override
    public void setupView() {
        ButterKnife.bind(this, mContextView);
    }

    @Override
    public void setupData() {

    }

    @OnClick({R.id.layout_purchase,R.id.layout_account})
    void doClicks(View view) {
        int id = view.getId();
        switch (id) {
            case R.id.layout_purchase:
                Intent intent=new Intent(getActivity(), MemberShipActivity.class);
                startActivity(intent);
                break;
            case R.id.layout_account:
                Intent intent_account=new Intent(getActivity(), PersonalInfoActivity.class);
                startActivity(intent_account);
                break;
        }
    }
}
